package com.itheima.pattern.t2_factory.demo5;

/**
 * 简单工厂+配置文件
 */
public class TestDemo {

    public static void main(String[] args) {
        {
            Coffee coffee = CoffeeFactory.createCoffee("american");
            System.out.println(coffee.getName());
        }
        {
            Coffee coffee = CoffeeFactory.createCoffee("latte");
            System.out.println(coffee.getName());
        }
    }
}
